package cn.broadsense.thrid.param;

import com.alibaba.fastjson2.JSONObject;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 人像库新增参数
 *
 * @author pengxin
 * @date 2022-10-12 15:55
 */
@NoArgsConstructor
@Data
public class FaceRepositoryAddParam extends BaseParam{
    private static final long serialVersionUID = -6113293804947106892L;
    /**
     * 必填。最长50位。库名称
     */
    private String name;
    /**
     * 必填。库类型。0-黑名单，1-白名单，2-静态库
     */
    private Integer type;

    /**
     * ，必填。 0-按人员（userInfo必填）；1-按角色（roleCodes必填）
     */
    private Integer addType;

    private String memo ="";

    private Integer rank = 1;
    private List<UserInfoParam> userInfo;

    private List<String> roleCodes = new ArrayList<>();


    @Override
    public void checkParam() {

    }

    @Override
    public Class getResultClass() {
        return JSONObject.class;
    }

    @NoArgsConstructor
    @Data
    public static class UserInfoParam {
        private String userCode;
        private String nodeName;
        private String tel;
    }
}
